#ifndef _BUILDBASE_H_
#define _BUILDBASE_H_
#include "cocos2d.h"

USING_NS_CC;
typedef enum taBuildBaseState 
{
    kBuildBaseStateGrabbed,
    kBuildBaseStateUngrabbed
} PaddleState; 

class BuildBase : public CCSprite, public CCTargetedTouchDelegate
{
	PaddleState        m_state;
public:
	BuildBase(void);
	virtual ~BuildBase(void);
	

    CCRect rect();
    bool initWithTexture(CCTexture2D* aTexture);
    virtual void onEnter();
    virtual void onExit();
    bool containsTouchLocation(CCTouch* touch);
    virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
    virtual void ccTouchMoved(CCTouch* touch, CCEvent* event);
    virtual void ccTouchEnded(CCTouch* touch, CCEvent* event);
    virtual CCObject* copyWithZone(CCZone *pZone);

    virtual void touchDelegateRetain();
    virtual void touchDelegateRelease();

    static BuildBase* BuildBaseWithTexture(CCTexture2D* aTexture);
};
#endif
